HashMap中一個精巧算法 tableSizeFor(int cap) 源碼如下: static final int tableSizeFor(int cap) { int n = cap - 1; n |= n >>& ...